//招行一网通
$("#editzhaohangyiwangtongType").change(function (){
    var reslist=$("#editzhaohangyiwangtongType").select2("data");
    $("#editzhaohangyiwangtongTypes").val(payTypes(reslist));
});


$("#zhaohangyiwangtongType").change(function(){
    var reslist=$("#zhaohangyiwangtongType").select2("data");
    $("#zhaohangyiwangtongTypes").val(payTypes(reslist));
});

function editzhaohangyiwangtong(i) {

    $("#editzhaohangyiwangtongActive").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.active");
    $("#editzhaohangyiwangtongBranchNo").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.branchNo");
    $("#editzhaohangyiwangtongMerchantNo").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.merchantNo");
    $("#editzhaohangyiwangtongPayNoticeUrl").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.payNoticeUrl");
    $("#editzhaohangyiwangtongReturnUrl").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.returnUrl");
    $("#editzhaohangyiwangtongSignNoticeUrl").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.signNoticeUrl");
    $("#editzhaohangyiwangtongKey").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.key");

    $("#editzhaohangyiwangtongTypes").attr("name", "payCompanyInfos[" + i + "].payType");

    $("#editzhaohangyiwangtongType").attr("data-placeholder", "请从列表选择一项");
    $("#editzhaohangyiwangtongType").attr("required", "");

    $("#editzhaohangyiwangtongActive").attr("required", "");
    $("#editzhaohangyiwangtongBranchNo").attr("required", "");
    $("#editzhaohangyiwangtongMerchantNo").attr("required", "");
    $("#editzhaohangyiwangtongPayNoticeUrl").attr("required", "");
    $("#editzhaohangyiwangtongReturnUrl").attr("required", "");
    $("#editzhaohangyiwangtongSignNoticeUrl").attr("required", "");
    $("#editzhaohangyiwangtongKey").attr("required", "");
}


function zhaohangyiwangtong(i) {
    $("#zhaohangyiwangtongActive").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.active");
    $("#zhaohangyiwangtongBranchNo").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.branchNo");
    $("#zhaohangyiwangtongMerchantNo").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.merchantNo");
    $("#zhaohangyiwangtongPayNoticeUrl").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.payNoticeUrl");
    $("#zhaohangyiwangtongReturnUrl").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.returnUrl");
    $("#zhaohangyiwangtongSignNoticeUrl").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.signNoticeUrl");
    $("#zhaohangyiwangtongKey").attr("name", "payCompanyInfos[" + i + "].zhaoHangYiWangTongVO.key");

    $("#zhaohangyiwangtongTypes").attr("name", "payCompanyInfos[" + i + "].payType");


    $("#zhaohangyiwangtongPayType").attr("data-placeholder", "请从列表选择一项");
    $("#zhaohangyiwangtongPayType").attr("required", "");


}